package org.example.ioc.pack;

import jakarta.annotation.Resource;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DemoD {
    //byType+byName
//    @Autowired //BYTAPE
//    @Qualifier(value = "demoC1") //byName //不能独立存在
//    private DemoC c;
    @Resource//先按照名字再按照
    private DemoC demoC1;
}
